﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.ServiceModel.Web;
using System.Text;

namespace PasswordManagerMVC
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "PMService" in code, svc and config file together.
    // NOTE: In order to launch WCF Test Client for testing this service, please select PMService.svc or PMService.svc.cs at the Solution Explorer and start debugging.
    [ServiceContract]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class PMService
    {
        [OperationContract]
        [WebInvoke(Method = "POST",
            BodyStyle = WebMessageBodyStyle.WrappedRequest,
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json)]
        public string DoWork(string name)
        {
            return "Hello " + name;
        }
    }
}
